﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;
using System.Collections.Generic;

namespace Models
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("Artworks")]
    public partial class Artworks
    {
        public Artworks()
        {


        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ArtworkID { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>     
        /// 
        [SugarColumn(IsOnlyIgnoreUpdate = true)]
        public int OwnerID { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>          
        /// 
        public string Items { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string Cover { get; set; }

        /// <summary>
        /// Desc:
        /// Default:1
        /// Nullable:True
        /// </summary>         
        /// 
        [SugarColumn(IsIgnore = true)]
        public int Type { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Content { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Tag { get; set; }

        /// <summary>
        /// Desc:
        /// Default:0
        /// Nullable:True
        /// </summary>           
        /// 
        [SugarColumn(IsOnlyIgnoreInsert = true)]
        public int Hot { get; set; }

        /// <summary>
        /// Desc:
        /// Default:DateTime.Now
        /// Nullable:True
        /// </summary>           
        /// 
        [SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
        public DateTime? CreatedAt { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        /// 
        [SugarColumn(IsOnlyIgnoreInsert = true)]
        public DateTime? UpdatedAt { get; set; }



        [SugarColumn(IsOnlyIgnoreInsert = true)]
        public int OrderNum { get; set; }


        [SugarColumn(IsIgnore = true)]
        public Models.UserInfo Owner { get; set; }

        [SugarColumn(IsIgnore = true)]
        public Models.ResumeInfo ResumeInfo { get; set; }

        [SugarColumn(IsIgnore = true)]
        public bool IsLike { get; set; }

        [SugarColumn(IsIgnore = true)]
        public int? LikeCount { get; set; }

        [SugarColumn(IsIgnore = true)]
        public DateTime? LastLikedAt { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<string> Pics { get; set; }
    }
}
